/*
 * License: Copyright (c) Huawei Technologies Co., Ltd. 2012-2019. All rights reserved.
 * Description: recv data
 * Date: 2019-12-02 15:35:44
 * LastEditTime : 2020-01-07 09:59:47
 */

#ifndef INC_DATA_RECV_H
#define INC_DATA_RECV_H

#include <hiaiengine/api.h>
#include <string>

using namespace std;

class UserDataRecvInterface : public hiai::DataRecvInterface {
 public:
    UserDataRecvInterface(const std::string& filename) :
        file_name_(filename) {}
    ~UserDataRecvInterface() {}
    HIAI_StatusT RecvData(const std::shared_ptr<void>& message);

 private:
    std::string file_name_;     // save the result
};

#endif  // INC_DATA_RECV_H_
